﻿using System;

namespace Sample
{
    public class RandomDiceRoll : DiceRoll
    {
        private readonly Int32 minValue;
        private readonly Int32 maxValue;

        public RandomDiceRoll(Int32 minValue, Int32 maxValue)
        {
            this.minValue = minValue;
            this.maxValue = maxValue;
        }

        public override Int32 RollValue()
        {
            Random random = new Random();
            Int32 rollValue =random.Next(this.minValue, this.maxValue);

            return rollValue;
        }
    }
}
